//
//  HttpRequest.h
//  Safflower
//
//  Created by 袁亮 on 2016/11/25.
//  Copyright © 2016年 Migic_Z. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HttpRequest : NSObject

#pragma mark GET请求
+(void)GETRequest:(NSString *)requestUrl
       WithParams:(NSDictionary *)params
      WithSuccess:(void(^)(id responseOjbect))success
         WithFail:(void(^)(NSError *error))fail;

#pragma mark POST请求

+(void)POSTRequest:(NSString *)requestUrl
        WithParams:(NSDictionary *)params
       WithSuccess:(void(^)(id responseOjbect))success
          WithFail:(void(^)(NSError *error))fail;

@end
